package com.ruoyi.system.domain.module.estate;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.system.domain.module.property.PropertyFeeOrder;
import com.ruoyi.system.domain.module.setMeal.SetMealOrder;
import com.ruoyi.system.domain.module.dto.ChargerOrderDTO;
import com.ruoyi.system.domain.module.excel.IntegralRecordExcel;
import com.ruoyi.system.domain.module.excel.ProductOrderExcel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 小区列对象 estate
 *
 * @author ruoyi
 * @date 2021-08-18
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("estate")
public class Estate implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

	/**
	 * 物业公司id
	 */
    private Integer propertyId;

    /**
     * 小区名称
     */
    private String estateName;


	private Double lng;

	private Double lat;

    /**
     * 小区地址
     */
    private String address;

    /**
     * 所在省份
     */
    private String prov;

    /**
     *  所在城市
     */
    private String city;

    /**
     *  所在区县
     */
    private String district;

    /**
     * 负责人姓名
     */
    private String leaderName;

    /**
     * 负责人电话
     */
    private String leaderPhone;

    /**
     * 办公室电话
     */
    private String telphone;


    /**
     * 物业费高层单价
     */
    private BigDecimal wyfHighSinglePrice;

    /**
     * 物业费底层单价
     */
    private BigDecimal wyfLowSinglePrice;

    /**
     * 物业费商业单价
     */
    private BigDecimal wyfBusinessPrice;

    /**
     * 物业费别墅单价
     */
    private BigDecimal wyfVillaSinglePrice;

    /**
     * 水费单价
     */
    private BigDecimal waterSinglePrice;

	/**
	 * 水费单价 - 商业
	 */
	private BigDecimal waterBusinessSinglePrice;
    /**
     * 垃圾处理费单价
     */
    private BigDecimal trashSinglePrice;

    /**
     * 电费单价
     */
    private BigDecimal electricSinglePrice;

	/**
	 * 电费单价 - 商业
	 */
	private BigDecimal electricBusinessSinglePrice;

	/**
	 * 物业费缴费二维码
	 */
    private String qrCode;

	/**
	 * 状态  0 - 可用 1 - 不可用
	 */
    private Integer state;

    /**
     * 名字拼音首字母
     */
    private String nameCharacter;

	/**
	 *  一次性缴费 享受优惠的 的月数
	 */
	private BigDecimal wyfYhMonth;
	/**
	 *  优惠的折扣  9.7折   10 - 9.7 = 0.3 * 10 = 3%；
	 */
	private BigDecimal wyfYhRate;

	/**
	 *  优惠的折扣(半年)  9.5折
	 */
	private BigDecimal wyfYhRateHalf;

	/**
	 *  支付方式
	 */
	private Integer payPlatformId;

	/**
	 *  抄表年份
	 */
	private Integer checkMeterYear;

	/**
	 *  抄表月份
	 */
	private Integer checkMeterMonth;


	@TableField(exist = false)
	private Long productId;

    @TableField(exist = false)
    private Integer isCheck;

    @Excel(name = "物业名称")
	@TableField(exist = false)
	private String propertyName;

    @TableField(exist = false)
    private String[] provinceArray;

    @TableField(exist = false)
	private Integer isCanEdit;

    @TableField(exist = false)
	private Integer payType;

	@TableField(exist = false)
	private String beginDate;
	@TableField(exist = false)
	private String endDate;

    @TableField(exist = false)
    private ProductOrderExcel productOrderExcel;

	@TableField(exist = false)
	private ProductOrderExcel deviceOrderExcel;

	@TableField(exist = false)
	private ChargerOrderDTO chargerOrder;

	@TableField(exist = false)
	private PropertyFeeOrder propertyFeeOrder;


	@TableField(exist = false)
	private SetMealOrder setMealOrder;

	@TableField(exist = false)
	private IntegralRecordExcel integralRecord;

	private Integer wyfWaterBand;

}
